package com.shenmazong.controller;

import com.github.pagehelper.PageInfo;
import com.shenmazong.pojo.TbTaskSkillGradeDetail;
import com.shenmazong.service.TbTaskSkillGradeDetailService;
import com.shenmazong.utils.ResultResponse;
import com.shenmazong.vo.ListParamVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 技能作业成绩明细
 */
@RestController
@RequestMapping("/taskSkillGradeDetail")
public class TbTaskSkillGradeDetailController {

    @Autowired
    TbTaskSkillGradeDetailService tbTaskSkillGradeDetailService;

    /**
     * 列表
     * @param listParamVo
     * @return
     */
    @PostMapping("/findTaskSkillGradeDetailList")
    public ResultResponse findTaskSkillGradeDetailList(@RequestBody ListParamVo listParamVo){
        Integer current = listParamVo.getCurrent();
        Integer size = listParamVo.getSize();
        Object skillGradeDetail = listParamVo.getParamMap().get("taskSkillGradeDetail");
        PageInfo pageInfo=tbTaskSkillGradeDetailService.findTaskSkillGradeDetailList(current,size,skillGradeDetail);
        return ResultResponse.SUCCESS(pageInfo);
    }
}
